#!/usr/bin/env sh

set -e

python manage.py collectstatic --noinput --settings=zwidny.settings.live
python manage.py makemigrations --noinput --settings=zwidny.settings.live
python manage.py migrate --noinput --settings=zwidny.settings.live
exec gunicorn --bind unix:/tmp/zwidny.com.socket --env DJANGO_SETTINGS_MODULE=zwidny.settings.live zwidny.wsgi
#exec gunicorn --bind :8000 --env DJANGO_SETTINGS_MODULE=zwidny.settings.live zwidny.wsgi